using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblSinhVien
	{
	private int stt;
	private int idTruong;
	private string hoten;
	private DateTime ngaysinh;
	private string diachi;
	private string dienthoai;
	private string email;
	private string gioitinh;
	private string pass;
	private string maSV;
	private object imgSV;
	private string enable;
	private string ghichu;
	public tblSinhVien()
	{}
	public tblSinhVien(int stt,int idTruong,string hoten,DateTime ngaysinh,string diachi,string dienthoai,string email,string gioitinh,string pass,string maSV,object imgSV,string enable,string ghichu)
	{
	this.stt = stt;
	this.idTruong = idTruong;
	this.hoten = hoten;
	this.ngaysinh = ngaysinh;
	this.diachi = diachi;
	this.dienthoai = dienthoai;
	this.email = email;
	this.gioitinh = gioitinh;
	this.pass = pass;
	this.maSV = maSV;
	this.imgSV = imgSV;
	this.enable = enable;
	this.ghichu = ghichu;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public string Hoten{
	get { return this.hoten;}
	set {this.hoten=value;}
	}
	public DateTime Ngaysinh{
	get { return this.ngaysinh;}
	set {this.ngaysinh=value;}
	}
	public string Diachi{
	get { return this.diachi;}
	set {this.diachi=value;}
	}
	public string Dienthoai{
	get { return this.dienthoai;}
	set {this.dienthoai=value;}
	}
	public string Email{
	get { return this.email;}
	set {this.email=value;}
	}
	public string Gioitinh{
	get { return this.gioitinh;}
	set {this.gioitinh=value;}
	}
	public string Pass{
	get { return this.pass;}
	set {this.pass=value;}
	}
	public string MaSV{
	get { return this.maSV;}
	set {this.maSV=value;}
	}
	public object ImgSV{
	get { return this.imgSV;}
	set {this.imgSV=value;}
	}
	public string Enable{
	get { return this.enable;}
	set {this.enable=value;}
	}
	public string Ghichu{
	get { return this.ghichu;}
	set {this.ghichu=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idTruong+"; "+this.hoten+"; "+this.ngaysinh+"; "+this.diachi+"; "+this.dienthoai+"; "+this.email+"; "+this.gioitinh+"; "+this.pass+"; "+this.maSV+"; "+this.imgSV+"; "+this.enable+"; "+this.ghichu+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblSinhVien me=(tblSinhVien)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 